package com.cbwl.eoas.common.framework.session;

import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 
 * <p>[描述信息：缓存的用户信息DTO]</p>
 *
 * @author 虞云波 - yuyunbo@3856.cc
 * @version 1.0 Created on 2017年10月23日 下午5:57:05
 */
public class SecurityUserDTO implements Serializable {

	private static final long serialVersionUID = -2037962137352269486L;

	// 用户id
	private Long id;

	//工号
	private java.lang.String userJobno;
	//手机号
	private java.lang.String userPhone;
	//邮件信息
	private java.lang.String userEmail;
	//用户类型
	private java.lang.String userType;
	//登录错误次数
	private Integer loginPwdErrorNum;
	//上次登录时间
	private java.util.Date loginPwdLastTime;
	//是否在线
	private Integer onlineis;
	//用户状态
	private java.lang.String userStatus;
	//职员名称
	private java.lang.String empName;
	//头像路径
	private java.lang.String empAvatar;
	//证件号
	private java.lang.String empCardno;
	//职位名称
	private java.lang.String posName;
	
	//部门编码
	private java.lang.String orgCode;
	//部门名称
	private java.lang.String orgName;
	//部门类型
	private java.lang.Integer orgType;
	
	
	//tokenId
	private String tokenId;
	
	//用户唯一标识
	private String key;
	

	private Set<String> menus = new HashSet<String>();

	private Set<String> bauths = new HashSet<String>();

	

	
	
	public Long getId() {
		return id;
	}


	
	public void setId(Long id) {
		this.id = id;
	}


	public java.lang.String getUserJobno() {
		return userJobno;
	}

	
	public void setUserJobno(java.lang.String userJobno) {
		this.userJobno = userJobno;
	}

	
	public java.lang.String getUserPhone() {
		return userPhone;
	}

	
	public void setUserPhone(java.lang.String userPhone) {
		this.userPhone = userPhone;
	}

	
	public java.lang.String getUserEmail() {
		return userEmail;
	}

	
	public void setUserEmail(java.lang.String userEmail) {
		this.userEmail = userEmail;
	}

	
	public java.lang.String getUserType() {
		return userType;
	}

	
	public void setUserType(java.lang.String userType) {
		this.userType = userType;
	}

	
	public Integer getLoginPwdErrorNum() {
		return loginPwdErrorNum;
	}

	
	public void setLoginPwdErrorNum(Integer loginPwdErrorNum) {
		this.loginPwdErrorNum = loginPwdErrorNum;
	}

	
	public java.util.Date getLoginPwdLastTime() {
		return loginPwdLastTime;
	}

	
	public void setLoginPwdLastTime(java.util.Date loginPwdLastTime) {
		this.loginPwdLastTime = loginPwdLastTime;
	}

	
	public Integer getOnlineis() {
		return onlineis;
	}

	
	public void setOnlineis(Integer onlineis) {
		this.onlineis = onlineis;
	}

	
	public java.lang.String getUserStatus() {
		return userStatus;
	}

	
	public void setUserStatus(java.lang.String userStatus) {
		this.userStatus = userStatus;
	}

	
	public java.lang.String getEmpName() {
		return empName;
	}

	
	public void setEmpName(java.lang.String empName) {
		this.empName = empName;
	}

	
	public java.lang.String getEmpAvatar() {
		return empAvatar;
	}

	
	public void setEmpAvatar(java.lang.String empAvatar) {
		this.empAvatar = empAvatar;
	}

	
	public java.lang.String getEmpCardno() {
		return empCardno;
	}

	
	public void setEmpCardno(java.lang.String empCardno) {
		this.empCardno = empCardno;
	}

	
	public java.lang.String getPosName() {
		return posName;
	}

	
	public void setPosName(java.lang.String posName) {
		this.posName = posName;
	}

	
	public java.lang.String getOrgCode() {
		return orgCode;
	}

	
	public void setOrgCode(java.lang.String orgCode) {
		this.orgCode = orgCode;
	}

	
	public java.lang.String getOrgName() {
		return orgName;
	}

	
	public void setOrgName(java.lang.String orgName) {
		this.orgName = orgName;
	}

	
	public java.lang.Integer getOrgType() {
		return orgType;
	}

	
	public void setOrgType(java.lang.Integer orgType) {
		this.orgType = orgType;
	}
	
	
	public Set<String> getMenus() {
		return menus;
	}


	
	public void setMenus(Set<String> menus) {
		this.menus = menus;
	}


	
	public Set<String> getBauths() {
		return bauths;
	}


	
	public void setBauths(Set<String> bauths) {
		this.bauths = bauths;
	}


	public String getTokenId() {
		return tokenId;
	}


	
	public void setTokenId(String tokenId) {
		this.tokenId = tokenId;
	}


	
	public String getKey() {
		return key;
	}


	
	public void setKey(String key) {
		this.key = key;
	}

	
	
	
}
